<template>
  <div id="app" class="clearfix">
    <keep-alive>
      <router-view />
    </keep-alive>
    <NavFooter v-show="$route.meta.isShowFooter" />
  </div>
</template>

<script>
import { mapActions, mapState } from 'vuex'
import NavFooter from './components/NavFooter/index.vue'
export default {
  name: 'App',
  components: {
    NavFooter
  },
  mounted () {
    this.loadingUserInfo()
    this.loadingPosition()
  },
  computed: {
    ...mapState(['userInfo', 'address'])
  },
  methods: {
    ...mapActions(['loadingUserInfo', 'loadingPosition'])
  }
}
</script>

<style lang="stylus" scoped></style>
